package com.imodia.checkoo.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.hsq.commons.util.db.GenericIbatisDao;
import com.hsq.commons.util.db.SqlParam;
import com.hsq.commons.util.db.annotation.SqlSpace;
import com.imodia.checkoo.bean.CmsImageSourceBean;
import com.imodia.checkoo.service.CmsImageSourceService;

@SqlSpace(spaceName="cmsimagesource")
@Service("cmsImageSourceService")
public class CmsImageSourceServiceImpl  extends GenericIbatisDao<CmsImageSourceBean, Integer> implements
	CmsImageSourceService {

	public List<CmsImageSourceBean> listByArticle(int articleId){
		SqlParam imageSql = new SqlParam();
		imageSql.andEqualTo("article_id", String.valueOf(articleId));
		return super.list(imageSql);
	}

}